package com.coding.dao;

import com.coding.pojo.History;
import com.coding.pojo.Userhistoryplace;
import com.coding.pojo.Userhistorypoem;
import com.coding.pojo.Userhistorypost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HistoryDao {
    int insert(History record);

    List<Userhistorypost> selectpost(int user_id);

    Userhistorypost selectPostSingle(@Param("source_id") int source_id,@Param("user_id")int user_id);

    List<Userhistoryplace> selectMainplace(int user_id);

    Userhistoryplace selectMainplaceSingle(@Param("source_id") int source_id,@Param("user_id")int user_id);

    List<Userhistorypoem> selectpoem(int user_id);

    Userhistorypoem selectPoemSingle(@Param("source_id") int source_id,@Param("user_id")int user_id);

    List<History> selectByTime(int user_id);

    int updateHistory(@Param("user_id") int user_id, @Param("source_id") int source_id, @Param("history_kind") String source_kind, @Param("history_time") String time);

    int insertSelective(History record);
}